﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    栏目：<input type="text" id="type" /><br />
    页码：<input type="text" id="page" /><br />
    <input type="button"  value="获取" onclick="loadMore()" />

     结果：<div id="result"></div>
    <script>
        var pagesize, listsize;
        var over = false;

        

        window.onload = function () {
            loadMore();
        };

        function loadMore() {
            var page = document.getElementById("page").value;
            var type = document.getElementById("type").value;

            var jsonname = "{# json = article ? orderby = id & categ = call.cid & desc=false & pagesize = 3 & fields = id /}";
           
            _tagcall.json(jsonname, "page=" + page + '&cid=' + type); ///  在这里指定cid的值
        }

        function CallbackSuccess(resultstr) {
            document.getElementById('result').innerHTML = resultstr;
        }

    </script>
</body>
</html>
